home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / DocShell / OpenDocX.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  7.3 KB  |  250 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        OpenDocX.r
  3.  
  4.     Contains:    resources for the launcher (OpenDoc™)
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.         <11>    11.09.1996    NP        1386084: changed name of macro to
  13.                                     COMPATIBLEWITHSYSTEMPROCESS
  14.         <10>     9/10/96    eeh        1384356: make resources purgeable
  15.          <9>    22.07.1996    NP        1370914: Remove system process.
  16.          <8>     6/23/96    NP        10002: Launch time speedups.
  17.          <7>     6/19/96    NP        10002: Launch time speedups.
  18.          <6>     6/18/96    NP        10002: Launch time speedups.
  19.          <5>    .06.1996    NP        10002: Launch time fixes, system process.
  20.          <4>     4/15/96    TJ        Use Constants for RSRC Numbers
  21.          <3>     3/14/96    NP        1258295: Definition of ALRT resource to
  22.                                     display when user double-clicks app.
  23.          <2>     1/15/96    JA        1269485: Added 'ictb' for splash dlog to
  24.                                     change font to Geneva 10
  25.         <15>    10/26/95    TÇ        1296574 GM:Cannot set default memory
  26.                                     partition size.
  27.         <14>    10/25/95    TÇ        1281409 GM: OpenDoc needs an AboutBox.
  28.         <13>     9/29/95    eeh        1287262: use ShellDef.h
  29.         <12>      9/8/95    eeh        1268998: add prefs file name 'STR '
  30.                                     resource
  31.         <11>      6/8/95    RR        #1257260 Collapse base classes. #1214898
  32.                                     StdTypes.r -> ODTypes.r
  33.         <10>     5/19/95    TÇ        1155852 BB: String constants need to be
  34.                                     moved to resource for Localization
  35.          <9>      1/6/95    jpa        Get rsrcs from OpenDocX.res (not .rsrc) and
  36.                                     DocStub.rsrc. Don't copy ckid's. [1196515]
  37.          <8>    12/25/94    TÇ        1191189 Eliminate duplicate Def.h, Def.xh
  38.                                     files
  39.          <7>     12/5/94    jpa        Added resources for error handling. Include
  40.                                     new OpenDocX.rsrc (moved many rsrcs into
  41.                                     it.) [1198075]
  42.          <6>     10/7/94    TÇ        #1191470 Need both 68K and PPC document
  43.                                     stub application
  44.          <5>     8/19/94    TÇ        #1159233 Remove references to j3di, all but
  45.                                     the one mpwshell variable reference
  46.          <4>     7/25/94    TÇ        added Jens' Error Alert ALRT and DITL
  47.                                     resources for launcher error alerts
  48.          <3>     7/14/94    TÇ        use constants for resources which are
  49.                                     CHANGEd for copying into documents
  50.          <2>     7/14/94    TÇ        use full path for read statement
  51.          <1>     7/13/94    TÇ        first checked in
  52.          <0>     6/27/94    SV        SOMverted
  53.          <5>     4/18/94    TÇ        #1144379 Stationery model & generation have
  54.                                     been fixed to enable dragging & dropping of
  55.                                     stationery onto open documents.
  56.          <4>    12/17/93    eeh        added line "Change 'scsz' (0) to 'J3DI'
  57.                                     (3)" to allow docs to get GetAETE events
  58.          <3>    11/23/93    TÇ        ?
  59.          <2>    10/26/93    TÇ        Change 'CODE' (2) to 'J3DI' (2);
  60.          <1>    10/18/93    TÇ        first checked in
  61.  
  62.     To Do:
  63.     In Progress:
  64.         
  65. */
  66.  
  67. #ifndef _SHELLDEF_
  68. #include "ShellDef.h"
  69. #endif
  70.  
  71. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  72. #include "StdDefs.r"
  73. #endif
  74.  
  75. // Resources from the ResEdit file.
  76. // Graphical resources like ALRT, DLOG, DITL, PICT, and icons should go here.
  77. include "OpenDocX.res" not 'ckid';
  78.  
  79. #define COMPATIBLEWITHSYSTEMPROCESS 0
  80. #if COMPATIBLEWITHSYSTEMPROCESS
  81. delete 'BNDL';
  82. delete 'FREF';
  83. delete 'ICN#';
  84. delete 'ics#';
  85. delete 'icl4';
  86. delete 'icl8';
  87. delete 'ics4';
  88. delete 'ics8';
  89. delete 'odtm';
  90. delete 'odbg';
  91. delete 'cfmg';
  92. #endif /* COMPATIBLEWITHSYSTEMPROCESS */
  93.  
  94. // Resources for the document stub:
  95. include "DocStub.rsrc";
  96.  
  97.  
  98. // Resources for OpenDoc™ the application
  99.  
  100. #define SystemSevenOrBetter 1            // we want the extended types
  101. #define    SystemSevenOrLater    1            // Types.r uses this variable
  102.  
  103. #ifndef __TYPES_R__
  104. #include "Types.r"
  105. #endif
  106.  
  107. #ifndef __SYSTYPES_R__
  108. #include "SysTypes.r"
  109. #endif
  110.  
  111.  
  112. #define kApplCrtrID        128
  113. #define kWildCrtrID        129
  114.  
  115. resource 'ALRT' (kODXDoubleClickAlert
  116. #if ODDebug
  117. ,"Double-click warning"
  118. #endif
  119. , purgeable /*<eeh> added for 1384356*/) {
  120.     {40, 40, 164, 405},
  121.     kODXDoubleClickAlert,
  122.     {    /* array: 4 elements */
  123.         /* [1] */
  124.         OK, visible, sound1,
  125.         /* [2] */
  126.         OK, visible, sound1,
  127.         /* [3] */
  128.         OK, visible, sound1,
  129.         /* [4] */
  130.         OK, visible, sound1
  131.     },
  132.     alertPositionMainScreen
  133. };
  134.  
  135. resource 'DITL' (kODXDoubleClickAlert
  136. #if ODDebug
  137. ,"Double-click warning"
  138. #endif
  139. , purgeable /*<eeh> added for 1384356*/ ) {
  140.     {    /* array DITLarray: 2 elements */
  141.         /* [1] */
  142.         {91, 293, 111, 351},
  143.         Button {
  144.             enabled,
  145.             "OK"
  146.         },
  147.         /* [2] */
  148.         {11, 71, 75, 355},
  149.         StaticText {
  150.             disabled,
  151.             "Double clicking on this OpenDoc™ icon ha"
  152.             "s no effect. If you wish to create a new"
  153.             " document, please use stationery -- foun"
  154.             "d in the Stationery folder."
  155.         }
  156.     }
  157. };
  158.  
  159. // SIZE -1
  160.  
  161.  RESOURCE 'SIZE' (-1) {
  162.     reserved,
  163.     acceptSuspendResumeEvents,
  164.     reserved,
  165.     canBackground,
  166.     doesActivateOnFGSwitch,
  167.     backgroundAndForeground,
  168.     dontGetFrontClicks,
  169.     acceptChildDiedEvents,    // Need to be notified by CFM if load fails
  170.     is32BitCompatible,
  171.     isHighLevelEventAware,
  172.     localAndRemoteHLEvents,
  173.     isStationeryAware,
  174.     dontUseTextEditServices,
  175.     reserved,
  176.     reserved,
  177.     reserved,
  178.     160 * 1024,    
  179.     80 * 1024
  180. };
  181.  
  182.  
  183. resource 'STR#' (kLaunchFailedErrStrings, purgeable) {
  184.     {
  185.         /* [1] */ "of an unexpected error ^3",
  186.         /* [2] */ "of an invalid context ID",
  187.         /* [3] */ "of an invalid connection to the library “^2”",
  188.         /* [4] */ "a symbol was not found in the library “^2”",
  189.         /* [5] */ "of a missing section in the library “^2”",
  190.         /* [6] */ "the library “^2” could not be found",
  191.         /* [7] */ "the library name “^2” is already in use",
  192.         /* [8] */ "the library “^2” has an unknown data format",
  193.         /* [9] */ "the library “^2” has unresolved symbols",
  194.         /* [10] */ "of an error ^3",
  195.         /* [11] */ "there was not enough memory available to"
  196.         " load the library “^2”",
  197.         /* [12] */ "there was not enough memory available to"
  198.                     " load the library “^2”",
  199.         /* [13] */ "no more context IDs are available for library “^2”",
  200.         /* [14] */ "of an order error in the init function of"
  201.                     " library “^2”",
  202.         /* [15] */ "the library “^2” is too old",
  203.         /* [16] */ "the library “^2” is too new",
  204.         /* [17] */ "of a circularity in the load order of library “^2”",
  205.         /* [18] */ "of an error connecting to library “^2”",
  206.         /* [19] */ "of an error connecting to library “^2”",
  207.         /* [20] */ "of an error during initialization of library “^2”",
  208.         /* [21] */ "of an internal CFM inconsistency",
  209.         /* [22] */ "the library “^2” is corrupted: please replace it",
  210.         /* [23] */ "of an error in the “^2” library’s initialization routine ",
  211.         /* [24] */ "no application was found in the library “^2”s 'cfrg' resource",
  212.         /* [25] */ "the library “^2” cannot be run on this "
  213.                     "type of Macintosh; please replace it",
  214.         /* [26] */ "the library “^2” is used invalidly"
  215.     }
  216. };
  217.  
  218. resource 'STR#' (kODXLibsFldrStrID, purgeable) {
  219.     {
  220.         /* 1 */ "OpenDoc Libraries",
  221.         /* 2 */ "This file contains preference information for OpenDoc. "
  222.                 "It cannot be opened.",
  223.     }
  224. };
  225.  
  226. include "Shell.rsrc" 'STR#' (kSHLMiscErrorStringsStrID);
  227.  
  228. include "Shell.rsrc" 'STR ' (kSHLPrefsFileNameResID);
  229. include "Shell.rsrc" 'STR ' (kSHLPrefsFolderNameResID);
  230. include "Shell.rsrc" 'STR ' (kSHLSystemProcessNameResID);
  231. include "Shell.rsrc" 'STR ' (kSHLLauncherNameResID);
  232. include "Shell.rsrc" 'STR ' (kSHLOldLauncherNameResID);
  233.  
  234. data 'ictb' (kODSplashDlogID, purgeable /*<eeh> added for 1384356*/) {
  235.     $"0000 0000"    /* User item is unaffected */
  236.     $"0005 0008"    /* Change font + size of text item */
  237.     
  238.     $"0001"            /* Use application font */
  239.     $"0000"            /* Plain style [ignored] */
  240.     $"000A"            /* 10pt size */
  241.     $"0000"            /* Red component [ignored] */
  242.     $"0000"            /* Blue component [ignored] */
  243.     $"0000"            /* Green component [ignored] */
  244.     $"0000"            /* BG Red component [ignored] */
  245.     $"0000"            /* BG Blue component [ignored] */
  246.     $"0000"            /* BG Green component [ignored] */
  247.     $"0001"            /* srcOr mode [ignored] */
  248. };
  249.  
  250.